<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登录</title>
<link rel="stylesheet"
	href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
<script
	src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script
	src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript">
	function forward() {

		window.location.href = "www.baidu.com";

	}
</script>
</head>
<body>

	<div class="container">
		<div class="row clearfix">
			<div class="col-md-12 column">
				<h3 align="center">在线购物商城登录</h3>
				<h4>${registsucc }</h4>

				<form:form class="form-horizontal" role="form" action="/login"
					modelAttribute="u" method="post">
					<div class="form-group">
						<label for="inputEmail3" class="col-sm-2 control-label">账号</label>
						<div class="col-sm-10">
							<input class="form-control" id="inputEmail3" type="text"
								name="zybusername" />
							<form:errors path="zybusername"></form:errors>
						</div>
					</div>
					<div class="form-group">
						<label for="inputPassword3" class="col-sm-2 control-label">Password</label>
						<div class="col-sm-10">
							<input class="form-control" id="inputPassword3" type="password"
								name="zybuserpwd" />
							<form:errors path="zybuserpwd"></form:errors>
						</div>
					</div>
					<div class="form-group">
						<div class="col-sm-offset-2 col-sm-10">
							<button type="submit" class="btn btn-default">登录</button>
							<a href="/regist" class="btn btn-success" onclick="forward();">注册</a>
						</div>
					</div>
					<h4>${error}</h4>
				</form:form>
			</div>
		</div>
</body>
</html>